package GUI;


public class App {
    public static String[] Account = new String[10];
    public static String[] Password = new String[10];
    static int counter = 0;
    public static void main(String[] args) {
        new LoginJFrame();
    }
    public static Boolean loginCount(String username, String password) {
        for (int i = 0; i < counter; i++) {
            if(username.equals(Account[i])) {
                if(password.equals(Password[i])) {
                    return true;
                }
            }
        }
        System.out.println("账号或密码错误");
        return false;
    }
    public static void registerPassword(String password,String username) {
        Account[counter] = username;
        Password[counter] = password;
        counter++;
    }
}
